package com.lx.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField("name")
    private String name;

    /**
     * 自用户密码
     */
    @TableField("password")
    private String password;

    /**
     * 用户头像
     */
    @TableField("headimg")
    private String headimg;

    /**
     * 自我介绍
     */
    @TableField("intro")
    private String intro;

    /**
     * 用户状态
     */
    @TableField("state")
    private String state;

    /**
     * 用户邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 粉丝数
     */
    @TableField("fens")
    private Integer fens;


    @TableField("title")
    private String title;


    public String getPassword() {
        return password;
    }

    public String getName() {
        return name;
    }

    public Integer getId() {
        return id;
    }

    public String getState() {
        return state;
    }

    public String getHeadimg() {
        return headimg;
    }

    public String getIntro() {
        return intro;
    }

    public String getEmail() {
        return email;
    }

    public Integer getFens() {
        return fens;
    }

    public String getTitle() {
        return title;
    }
}
